/**
 * BrandBigData.com Inc.
 * Copyright (c) 2018 All Rights Reserved.
 */
package com.qibao.toolkit.web;

import com.qibao.toolkit.generator.IdWorkerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 初始化项目
 *
 * @author HaoBin
 * @version $Id: Bootstrap.java, v0.1 2018/3/21 9:46 HaoBin
 */
@Component
public class Bootstrap {

    @PostConstruct
    public void init() {
        //TODO 从zookeeper获取workId
        Long workId = 12L;
        IdWorkerFactory.setWorkerId(workId);
    }
}